package com.java.comprehensive.controller;

import com.java.comprehensive.service.UserService;
import com.java.design.spring.context.support.ClassPathXmlApplicationContext;

/**
 * @author dgg
 * @date 2023/4/2 14:49
 * @description:
 */
public class UserController {
    public static void main(String[] args) throws Exception {
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("spring.xml");
        UserService userService = classPathXmlApplicationContext.getBean("userService", UserService.class);
        userService.add();
    }
}
